import request from '@/utils/request'

// 查询固件升级管理列表
export function listFirmwareUpgrade(query) {
  return request({
    url: '/firmware/firmwareUpgrade/list',
    method: 'get',
    params: query
  })
}

// 查询固件升级管理详细
export function getFirmwareUpgrade(id) {
  return request({
    url: '/firmware/firmwareUpgrade/' + id,
    method: 'get'
  })
}

// 新增固件升级管理
export function addFirmwareUpgrade(data) {
  return request({
    url: '/firmware/firmwareUpgrade',
    method: 'post',
    data: data
  })
}

// 修改固件升级管理
export function updateFirmwareUpgrade(data) {
  return request({
    url: '/firmware/firmwareUpgrade',
    method: 'put',
    data: data
  })
}

// 删除固件升级管理
export function delFirmwareUpgrade(id) {
  return request({
    url: '/firmware/firmwareUpgrade/' + id,
    method: 'delete'
  })
}



// 删除固件升级管理
export function upgrade(query) {
  return request({
    url: '/firmware/firmwareUpgrade/upgrade',
    method: 'put',
    data:query
  })
}

// 删除固件升级管理
export function firmwareUpgradelog(query) {
  return request({
    url: '/firmware/firmwareUpgradelog/list',
    method: 'get',
    params:query
  })
}

